package com.piggy.auth.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("验证码登录")
@EqualsAndHashCode(callSuper = true)
@Data
public class OAuthReqPhone extends OAuthReq {

    /**
     * 用户名
     */
    @ApiModelProperty("手机号码")
    @NotBlank(message = "{user.phone.not.blank}")
    private String phone;

    /**
     * 用户密码
     */
    @ApiModelProperty("验证码")
    @NotNull(message = "{user.code.not.blank}")
    private String code;

    /**
     * 用户密码
     */
    @ApiModelProperty("密码")
    private String password;

    /**
     * 用户密码
     */
    @ApiModelProperty("确认密码")
    private String confirePwd;

}
